package com.ruoyi.syf.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.common.annotation.ConvertField;
import com.ruoyi.common.annotation.ConvertFieldItem;
import com.ruoyi.common.enums.ConvertType;
import com.ruoyi.syf.domain.RiskMeasure;
import com.ruoyi.syf.domain.vo.RiskMeasureVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface RiskMeasureMapper extends BaseMapper<RiskMeasure> {

    /**
     * 查询管控措施列表
     */
    public List<RiskMeasureVo> list(RiskMeasureVo vo);

    RiskMeasureVo getInfoById(Long id);

    /**
     * 删除管控措施
     *
     * @param id 管控措施主键
     * @return 结果
     */
    public int deleteRiskMeasureById(Long id);

    /**
     * 批量删除管控措施
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteRiskMeasureByIds(Long[] ids);

    /**
     * 上报
     */
    List<Map<String,Object>> escalation();

}
